//
//  UIScrollView+MJ.m
//  SanYiTeaching
//
//  Created by 李文强 on 2019/5/16.
//  Copyright © 2019 SanYi. All rights reserved.
//

#import "UIScrollView+MJ.h"

@implementation UIScrollView (MJ)
- (void)headerRefreshBlock:(void(^)(void))headerBlock{
    MJRefreshNormalHeader * header =[MJRefreshNormalHeader headerWithRefreshingBlock:headerBlock];
    header.lastUpdatedTimeLabel.hidden = YES;
    header.stateLabel.hidden = YES;
    self.mj_header = header;
}
- (void)fooderRefreshBlock:(void (^)(void))fooderBlock{
    MJRefreshAutoNormalFooter *fooder = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:fooderBlock];
    fooder.stateLabel.hidden = YES;
    self.mj_footer = fooder;
}
- (void)sy_endRefreshing {
    [self.mj_header endRefreshing];
    [self.mj_footer endRefreshing];
}
@end
